package com.dy.user.dto;

import com.dy.basic.util.StrUtils;
import com.dy.user.domain.Logininfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneRegisterFormDto {

    @NotBlank(message = "电话号码不能为空")
    private String phone;

//    @NotBlank(message = "UUID不能为空")
    private String imageCodeKey;

//    @NotBlank(message = "图片验证码不能为空")
    private String imageCodeValue;

//    @NotBlank(message = "手机验证码不能为空")
    private String code;

//    @NotBlank(message = "密码不能为空")
    private String password;

//    @NotBlank(message = "确认密码不能为空")
    private String passwordRepeat;

    // 类型
    private String type;

    // 用户输入的验证码
    private String verifyCode;
    // 第三方接口的token
    private String accessToken;
     // 第三方接口的openId
    private String openId;

}
